package com.chromatic.messages.repository;

import com.chromatic.messages.model.CompetitionsURL;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CompetitionsUrlRepository extends JpaRepository<CompetitionsURL, Integer> {
    CompetitionsURL findById(int Id);

    List<CompetitionsURL> findBySubjectContainingIgnoreCase(String subject);
    // 可以根据需要定义其他自定义查询方法
    List<CompetitionsURL> findBySubject(String subject);
}
